<div ng-controller="AuthrizeCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'用户'|translate}}</li>
        <li class="active">
            {{"列表"|translate}}
            <a href="#/authrize/add" class="sui-btn btn-primary"> +{{'新建接口调用者' | translate}} </a>
        </li>
        <span class="sui-form sui-form pull-right"> 
          <input type="text"  placeholder="用户昵称"  ng-model="keyword">
          <button class="sui-btn btn-primary" type="submit" ng-click="getlist()">{{'search'|translate}}</button>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'用户id'|translate}}</th>
                <th>{{'头像'|translate}}</th>
                <th>{{'地址'|translate}}</th>
                <th >{{'操作步骤'|translate}}</th>
                <th>{{'状态'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in users">
                <td>{{list.user_id}}
                    <br/>
                    <subscribe unionid="list.unionid"></subscribe>
                </td>
                <td>
                    <wxinfo ng-model="list.open_id"></wxinfo>
                </td>
                <td>{{list.province}}
                    <br/>
                    {{list.city}}
                    <br/>
                    {{list.mobile}}
                    <br/>
                    {{list.created_at}}
                </td>
                <td width="40%">
                    <user-operatio-steps user="list.user_id"></user-operatio-steps>
                </td>
                <td>
                    <button ng-show="list.role_ids && !list.activated" type="button" class="sui-btn btn-warning" ng-click="StatusUpdate(1,list.user_id)">{{'激活'|translate}}</button>
                    <button ng-show="list.role_ids && list.activated" type="button" class="sui-btn btn-danger" ng-click="StatusUpdate(0,list.user_id)">{{'禁用'|translate}}</button>
                    <send-mb-msg title="" user-id="list.user_id" chosed-type ="chosed" seller="seller" app-id="app"></send-mb-msg>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="page_Size" total="total_count" get-data="getlist(pageNo)"></pager>
    <!-- 分页end -->
</div>